using System.Drawing;

namespace RebelStar.Engine.Graphics.GDI
{
    internal class GDIBuffer : GDISurface
    {
        readonly Bitmap image;

        public GDIBuffer(Size size)
        {
            image = new Bitmap(size.Width, size.Height);
            base.Graphics = System.Drawing.Graphics.FromImage(image);
        }

        public Bitmap Image
        {
            get { return image; }
        }
    }
}
